package Util;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Point;
import android.util.Log;

public class ColorBallDrag {
	
	private static final String TAG = "ColorBallDrag";
	private Bitmap img;
	private int id;
	private int dx;
	private int dy;
	private static int count = 1;

	public ColorBallDrag(Context context, int drawable)
	{
		BitmapFactory.Options opts = new BitmapFactory.Options();
		opts.inJustDecodeBounds = true;
		img = BitmapFactory.decodeResource(context.getResources(), drawable);
		id = count ;
		count ++;
	}
	
	public ColorBallDrag(Context context, int drawable, Point point)
	{
		BitmapFactory.Options opts = new BitmapFactory.Options();
		opts.inJustDecodeBounds = true;
		img = BitmapFactory.decodeResource(context.getResources(), drawable);
		id = count;
		count ++;
		dx = point.x;
		dy = point.y;
	}

	public Bitmap getImg() {
		return img;
	}

	public void setImg(Bitmap img) {
		this.img = img;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getDx() {
		return dx;
	}

	public void setDx(int dx) {
		this.dx = dx;
	}

	public int getDy() {
		return dy;
	}

	public void setDy(int dy) {
		this.dy = dy;
	}

	public static int getCount() {
		return count;
	}

	public static void setCount(int count) {
		ColorBallDrag.count = count;
	}
	
	public void moveBall(int goX, int goY)
	{
		Log.v(TAG, "moveball");
	}
}
